package org.jeecg.modules.health_records.health_exam.service;

import org.jeecg.modules.health_records.health_exam.entity.HealthExamIndexInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @Description: 周期性健康检查记录表
 * @Author: jeecg-boot
 * @Date:   2025-06-30
 * @Version: V1.0
 */
public interface IHealthExamIndexInfoService extends IService<HealthExamIndexInfo> {
    /**按recordid查询**/
     List<HealthExamIndexInfo> queryByRecordId(HealthExamIndexInfo healthExamIndexInfo);

    /**电子病历信息查询接口（查询时间最新的那条数据）--按recordid查询**/
     List<HealthExamIndexInfo> queryElecRecord(HealthExamIndexInfo healthExamIndexInfo);
    /**新规则:查询当下时间往前12个月的就诊数据作为电子病历数据**/
    List<HealthExamIndexInfo>  newQueryElecRecord(HealthExamIndexInfo healthExamIndexInfo);
    /**新规则：除去当下时间往前12个月的就诊数据，剩下的数据为既往病历数据**/
    List<HealthExamIndexInfo>  newQueryPastRecord(HealthExamIndexInfo healthExamIndexInfo);
}
